package org.jradweb.tools.generator.freemarker.util;

import java.io.InputStream;
import java.net.URL;
/**
 * 
 *
 * Created On 2008-2-29
 * @author <a href="mailto:wagzhi@gmail.com">Paul Wang</a>
 * @version $Id: ResourceLoader.java 42 2008-03-05 01:15:20Z wagzhi $
 */
public class ResourceLoader {
	public static InputStream loadResource(String name){
		ClassLoader loader=ResourceLoader.class.getClassLoader();
		URL url=loader.getResource(name);
		return loader.getResourceAsStream(name);
	}
}
